package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbReplenishDao;
import com.gtw.modules.entity.TbReplenish;
import com.gtw.modules.sys.service.TbReplenishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/26.
 */
@Service
public class SysTbReplenishServiceImpl implements TbReplenishService {

    @Autowired
    private TbReplenishDao replenishDao;

    @Override
    public TbReplenish queryObject(Integer id){
        return replenishDao.queryObject(id);
    }

    @Override
    public List<TbReplenish> queryList(Map<String, Object> map){
        return replenishDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return replenishDao.queryTotal(map);
    }

    @Override
    public void save(TbReplenish replenish){
        replenishDao.save(replenish);
    }

    @Override
    public void update(TbReplenish replenish){
        replenishDao.updateByPrimaryKey(replenish);
    }

    @Override
    public void delete(Integer id){
        replenishDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        replenishDao.deleteBatch(ids);
    }
}
